Skip to content

插件crypter添加qq表情加密并支持回应密文进行解密,与添加运势新底图#1285

Closed
Kajiekazz wants to merge 5 commits intoFloatTech:masterfrom
Kajiekazz:master
Closed

插件crypter添加qq表情加密并支持回应密文进行解密,与添加运势新底图#1285
Kajiekazz wants to merge 5 commits intoFloatTech:masterfrom
Kajiekazz:master

Conversation

@Kajiekazz
Copy link
Contributor

No description provided.

@Kajiekazz Kajiekazz changed the title 插件crypter添加qq表情加密并支持回应密文进行解密 插件crypter添加qq表情加密并支持回应密文进行解密,与添加运势新底图 Feb 12, 2026
Copy link
Member

@fumiama fumiama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不要把运势也放进来。

var faceTagRe = regexp.MustCompile(`\{\{face:(\d+)\}\}`)

func parseID(v interface{}) int64 {
n, _ := strconv.ParseInt(fmt.Sprintf("%v", v), 10, 64)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
n, _ := strconv.ParseInt(fmt.Sprintf("%v", v), 10, 64)
n, _ := strconv.ParseInt(fmt.Sprint(v), 10, 64)

return sb.String()
}

func deserializeMsg(s string) message.Message {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不好。应当用FindAllStringSubmatch直接提取出所有数字。

engine.OnRegex(`^(?:齁语加密|h加密)\s*(.+)$`).SetBlock(true).Handle(houEncryptHandler)
engine.OnRegex(`^(?:齁语解密|h解密)\s*(.+)$`).SetBlock(true).Handle(houDecryptHandler)
engine.OnRegex(re + `^(?:齁语加密|h加密)\s*(.+)$`).SetBlock(true).Handle(houEncryptHandler)
engine.OnRegex(re + `(?:齁语解密|h解密)\s*(.*)$`).SetBlock(true).Handle(houDecryptHandler)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为什么用.*

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在比如有人发密文,可以直接回复那条消息发xx解密,不用带参数

"strings"
"unicode/utf8"

"github.com/andybalholm/brotli"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

看不出有什么压缩的必要,建议取消。

Co-authored-by: fumiama <41315874+fumiama@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants